<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/fun.js"></script>
</head>
<body onload="shownew()">
<p id="one">在这里显示日期</p>
<button onclick="show()">显示日期</button>
<p id="two">显示变量类型</p>
<button onclick="showtype()">显示变量类型</button>
<button onclick="closeWin()">关闭</button>
<a href="javascript:self.close()">超链接关闭</a>

<input type="button"value="跳转" onclick="location.href='http://www.baidu.com'">

<input type="button" value="刷新页面" onclick="location.reload()"/>

<input type="button" value="替换页面" onclick="location."/>
</body>
</html>